﻿/** QUEEN CLASS
 * Author: Preeti Francis
 * User ID : pxfranci@scotty.cs.wichita.edu
 * WSU ID: S578F746
 * Course: CS771 
 * Sem: S2014
 * 
 * Description of Class : This is a data structure which holds the coordinates of the location 
 * of the queen on the chess board. It also contains a property to check if the queen is in conflict.
 * The Hash code property is used for randomization. 
 * **/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NQueenPuzzle
{
    class Queen
    {
        public int ColumnPosition { get; set; }

        public int RowPosition { get; set; }

        public bool IsConflicted { get; set; }

        //Used to induce randomization by generation of hash code everytime the object changes. 
        //Produces a highly efficient random number.
        public int HashCode 
        {
            get
            {
                return this.GetHashCode();
            }
        }
    }
}
